package net.sky.oa.model;

import java.io.Serializable;

import javax.persistence.Entity;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.annotations.OptimisticLock;

import flexjson.JSON;

@SuppressWarnings("serial")
public class BaseModel
  implements Serializable
	{
	  protected Log logger = LogFactory.getLog(Entity.class);
	  private Integer version;
	
	  @JSON(include=false)
	  @OptimisticLock(excluded=true)
	  public Integer getVersion()
	  {
	    return this.version;
	  }
	
	  public void setVersion(Integer version) {
	    this.version = version;
	  }
	}